package com.heima.wemedia.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.wemedia.dtos.AutoDto;
import com.heima.model.wemedia.dtos.WmNewsDto;
import com.heima.model.wemedia.dtos.WmNewsPageReqDto;
import com.heima.model.wemedia.pojos.WmNews;

public interface WmNewsServer extends IService<WmNews> {
    ResponseResult findList(WmNewsPageReqDto dto);
    /**
     *  发布文章或保存草稿
     * @param dto
     * @return
     */
    public ResponseResult submitNews(WmNewsDto dto) throws Exception;
//上下架
    ResponseResult downUp(WmNewsDto dto);

    ResponseResult list_vo(AutoDto dto);

    ResponseResult one_voId(Integer id);

    ResponseResult auth_fail(AutoDto dto);

    ResponseResult auth_pass(AutoDto dto);
}
